package com.songlanyun.modules.distributionconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.distributionconfig.entity.DistributionShopConfig;
import com.songlanyun.modules.distributionconfig.model.DistributionShopConfigDTO;

import java.util.Map;

/**
 * 商家分销设置，用来管控店铺分销的开启与关闭，分销佣金算法和算法数据
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-12-22 11:43:24
 */
public interface DistributionShopConfigService extends IBaseService<Long,DistributionShopConfig> {

    /**
    * 获取商家自营商品统一分销设置
    */
    DistributionShopConfig getByShop(Long shopId);

    /**
     * 保存商家自营商品统一分销设置
     * @param shopId
     * @param dto
     * @return
     */
    DistributionShopConfig set(Long shopId, DistributionShopConfigDTO dto);
}

